<template>
  <div class="partner-item">
    <div
      aspectratio
      aspectratio-1-1
      class="partner-item__cover">
      <img
        v-lazy="model.logo"
        :alt="model.company"
        aspectratio-content>
    </div>
    <div class="partner-item__content">
      <div class="partner-item__title">{{ model.company }}</div>
      <div class="partner-item__person"><div class="partner-item__person__name">{{ model.name }}</div><div class="partner-item__person__position">{{ model.position }}</div></div>
      <div class="partner-item__phone">电话：{{ model.phone }}</div>
    </div>
  </div>
</template>

<style lang="scss" scoped>
  .partner-item {
    padding: 16px 32px;
    display: flex;
    &__cover {
      width: 140px;
      border: 2px solid #D8D8D8;
      box-sizing: border-box;
    }
    &__content {
      margin-left: 16px;
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }
    &__title {
      font-size: 28px;
      color: #343434;
    }
    &__person {
      font-size: 28px;
      color: #444;
      display: flex;
      &__name {
        margin-right: 60px;
      }
    }
    &__phone {
      font-size: 28px;
      color: #444;
    }
  }
</style>

<script>
export default {
  props: {
    model: {
      type: Object,
      default: () => {
        return {}
      }
    }
  }
}
</script>
